package com.ruoyi.system.service;

import com.ruoyi.system.domain.SysAnnounManagement;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * 大赛公告管理 业务层
 *
 * @author ganshiyu
 */
public interface ISysAnnounManagementService {

     /**
      *  大赛公告管理  条件查询+分页
      * @param sysAnnounManagement 实体类
      * @return 对象列表
      */
     Map<String,Object> selectByPage(SysAnnounManagement sysAnnounManagement);

     /**
      * 大赛公告添加
      * @param sysAnnounManagement 实体类
      * @return 结果
      */
     int insertAnnounManagement(SysAnnounManagement sysAnnounManagement);

     /**
      *  修改大赛公告管理状态
      * @param amid
      * @return 结果
      */
     int editState(int amid);


     /**
      *  通过id查询对象
      * @param amid
      * @return 对象
      */
     SysAnnounManagement selectById(int amid);

     /**
      * 修改大赛公告
      * @param sysAnnounManagement 实体类
      * @return 结果
      */
     int edit(SysAnnounManagement sysAnnounManagement);

     /**
      *  删除大赛公告
      * @param amid
      * @return 结果
      */
     int remove(int amid);

     /*
      * 查询大赛公告标题
      * */
     @Select("select distinct  amTitle from announcement_management")
     List<SysAnnounManagement> selectAmTitle();

     /*
      * 查询大赛公告状态
      * */
     @Select("select distinct  amState from announcement_management")
     List<SysAnnounManagement> selectAmState();

    /**
     * 查询公告信息
     * @return
     */
    Map<String,Object> readAnnounMans(SysAnnounManagement sysAnnounManagement);
}
